import requestI from '@/utils/request'
// 巡检
// 巡检执行

// 巡检执行列表
export function getInspectionList(pageInfo){
    const {pageNo,pageSize} = pageInfo
    return requestI.get(`/execute/visitationExecuteSelect?pageNo=${pageNo}&pageSize=${pageSize}`)
}

// 巡检执行新增
export function insertInspection(data){
    return requestI({
        url:'/execute/insert',
        method:'post',
        data:data
    })
}


// 巡检执行批量删除
export function delInspectionList(idList){
    return requestI({
        url:'/execute/visitationExecuteBatchDel',
        method:'delete',
        body:idList
    })
}


// 巡检执行单个查询
export function getOneInspectionById(id){
    return requestI.get(`/execute/visitationExecuteSelectById?id=${id}`)
}

// 巡检执行修改
export function updateInspection(){
    return requestI({
        url:'/execute/visitationExecuteUpdate',
        method:'put',
        body:body
    })
}